#include <bits/stdc++.h>
using namespace std;

int main() {
    int a[10] = {1,2,3,1,2,3,1,2,3,4};
    sort(a, a+10);
    int len = unique(a, a+10) - a;
    
    for (int i=0; i<len; i++) {
    	cout << a[i] << " ";
	}
	return 0;
}

